import { GHttp } from "@geoway/adf-business";
import { post, postForm } from "../request";

const prefix = '/ytdzdt-server'

export const iquery = (params) =>
  GHttp.http({
    method: "get",
    url: "/catalog/browse/query/identify",
    params,
  });

export const queryDataById = (params) =>
  post(
    "/geoserver-open/rest/query/zydk_query",
    params
  );

export function pageQueryTextSearch(data) {
  return post(prefix + "/MapDomain/PoiService/poi/pageQueryTextSearch/v1", data);
}

export function getRegionByPcode(data) {
  return postForm(prefix + "/MapDomain/TbRegionService/getRegionByPcode/v1", data);
}
